iterator

open override fun iterator(): Iterator<T>

Returns a singleton iterator returning the option's value if it is defined, or an empty iterator if the option is empty.

Since

1.2